package com.jsmile.cloud.promotioncenter.activity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月07日 10:57:35
 */
@ApiModel
@Data
@TableName("p_template_order")
public class TemplateOrder extends Model<TemplateOrder> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "活动id（团购id）")
    private Long activityId;
    @ApiModelProperty(value = "拼团活动模板Id")
    private Long templateId;
    @ApiModelProperty(value = "下单用户id")
    private Long userId;
    @ApiModelProperty(value = "订单id")
    private Long orderNo;
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "（同步订单中心状态）待支付:1，待发货:2，待签收:3，已完成:4，已关闭:5；")
    private Integer orderStatus;
    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer delFlag;
    @ApiModelProperty(value = "订单总金额（单位：分）")
    private Long totalAmount;
    @ApiModelProperty(value = "开团模式，1 快递，2: 自提")
    private Integer deliveryType;
    @ApiModelProperty(value = "运费（单位：分）")
    private Long logisticsFee;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    @ApiModelProperty(value = "供应商id")
    private Long supplyId;
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;

}
